package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {


    /**
     * 文章列表
     * @param dto 查询的条件
     * @param type 1表示更新 2表示加载更多
     * @return 返回值
     */
     List<Article> loadArticleList(@RequestParam("dto")ArticleHomeDto dto,@RequestParam("type") Short type);
}
